h = ones(1, 5);       % Define the impulse response
nh = -2:2;            % Define nh as a range of indices
x = h;                % Define x as the same impulse response
nx = nh;              % Define nx to have the same range as nh

% Call the function
[y, ny] = convu(h, nh, x, nx);

% Display the results
disp('y = '), disp(y);
disp('ny = '), disp(ny);
